﻿package monitoring.resource;

import util.DateTime;

public class TestResource {

    public static void main(String[] args) throws ClassNotFoundException{
        Class.forName("monitoring.resource.AIXDriver");
        Resource test1 = ResourceManager.getResource();

        System.out.println("ThreadCount() : " + Thread.activeCount());
        /*
         * 정보성 (일회성)
         */
        System.out.println("====정보성====");
        System.out.println("getCPUCount() : " + test1.getCPUCount());
        System.out.println("getCPUSpeed() : " + test1.getCPUSpeed());
        System.out.println("getCoreCount() : " + test1.getCoreCount());
        System.out.println("getPhysicalMemory() : " + test1.getPhysicalMemory());
        System.out.println("getSwapMemory() : " + test1.getSwapMemory() );
        System.out.println("getDiskCount() : " + test1.getDiskCount());
        System.out.println("getDiskTotalCapacity() : " + test1.getDiskTotalCapacity());
        System.out.println("getOS_Name() : " + test1.getOS_Name());
        System.out.println("getServerName() : " + test1.getServerName());
        
        
        /*
         * History (추이성)
         */
        System.out.println("====History====");
        System.out.println("Time : " + DateTime.getShortTimeString());
        System.out.println("getCPUUseage() : " + test1.getCPUUseage());
        System.out.println("getDiskuseage() : " + test1.getDiskuseage());
        System.out.println("getIO_idle() : " + test1.getIO_idle());
        System.out.println("getMemoryUseage() : " + test1.getMemoryUseage());
        System.out.println("getMemoryUse() : " + test1.getMemoryUse());
        
        System.out.println("ThreadCount() : " + Thread.activeCount());
        
        
    }
}
